<?php
/**
 *
 * @since 2011-06-11
 * @author Cmd
 * @copyright (c) 2011, Cmd
 */

class modelApp extends app
{
	public function view(){
		$mid = & $this->getData('get/modelid');
		$obj = & $this->getModel('model');
		$data = $obj->get_model($mid);
		if($data['type'] == 'know'){
			go_to('/knowledge/view?id='.$data['relate_id']);
		}
	}
}
?>